package com.bzs.consumer.reconcile;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname Consumer
 * @Author baozs
 * @Date 2021/12/15 17:08
 * @Version 1.0
 * @Description
 **/
@RestController
@RequestMapping("consumer")
@AllArgsConstructor
public class Consumer {

    private final Provider provider;

    //读取Host系统文件
    @RequestMapping(value = "reconcile", method = RequestMethod.POST)
    public void reconcile() {
        provider.Reconcile();
    }

    //向房管局写文件
    @RequestMapping(value = "DataToFile", method = RequestMethod.POST)
    public void dataToFile() {
        provider.dataToFile();
    }
}
